$bool = Fs.Delete
("<filename>")
Permanently deletes an existing file.
Parameters
<filename> The file to be deleted.
Return Value
Returns 1 if successfully deleted, else returns 0.
Remarks
- It deletes the file completely and permanently from the system. It cannot be retrieved even from the recycle bin.
Example
$src = "C:\Plugins\Delete.doc"
$ret = fs.Delete ($src)